package com.example.sxt_practise.GOF23.composite.filekillvirus;

/**
 * @author gaofeng
 * @date 2022年05月23日 21:25
 */
public class TextFile implements AbstractFile{

    private final String fileName;

    public TextFile(String fileName) {
        this.fileName = fileName;
    }
    @Override
    public void killVirus() {
        System.out.println("文本文件" + fileName + "正在进行查杀");
    }
}
